//Author: David Lo
//Date: 12/12/12
//References: Game_Start.js
//Description: Starts the game when the player presses any jump button
// sets the initial player lives
// sets the initial player score

var myLevel : String;

function Update()
{
	//If player presses jump(on controller) or spacebar(on keyboard)
	if (Input.GetButtonUp("Jump") || Input.GetKeyUp (KeyCode.Space))
	{	
		//Sets initial player lives
		PlayerPrefs.SetInt("Player Lives", 3);
		//Sets initial player score
		PlayerPrefs.SetInt("Player Score", 0);
		
		//Loads level
		Application.LoadLevel(myLevel);
	}
}